ToArray Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates an array of the correct size, and copies all the items in the collection into the array, by calling CopyTo.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual T[] ToArray()
Visual Basic (Declaration)
Public Overridable Function ToArray As T()
Visual C++
public:
virtual array<T>^ ToArray ()

Return Value

An array containing all the elements in the collection, in order.

See Also